package com.example.paydemo.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.paydemo.mapper.ProductMapper;
import com.example.paydemo.model.Product;
import com.example.paydemo.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    private ProductMapper productMapper;
    @Override
    public List<Product> list() {
        LambdaQueryWrapper<Product> queryWrapper = new LambdaQueryWrapper<>();
        return productMapper.selectList(queryWrapper);
    }
}
